package org.ws.task.event.support.startup;

import org.ws.task.common.IndexNumberUtils;
import org.ws.task.event.EventSource;

public class BootstrapEvent extends EventSource {

    private BootstrapEventType eventType;

    private int index;

    public BootstrapEvent(Object source,BootstrapEventType eventType) {
        super(source);
        this.eventType = eventType;
        this.index = IndexNumberUtils.getBootstrapEventIndex();
    }

    public BootstrapEventType getEventType() {
        return eventType;
    }

    public int getIndex() {
        return index;
    }
}
